﻿using MySql.Data.MySqlClient;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;

namespace LittleBee.DBA
{
	internal class MySqlConnectionPool : DBConnectionPool
	{
		public MySqlConnectionPool(string strConnectionString, UInt32 nCapcity = 100)
			: base(strConnectionString, nCapcity)
		{

		}

		protected override DbConnection CreateObjcect()
		{
			MySqlConnection conn = new MySqlConnection(ConnectionString);
			conn.Open();

			return conn;
		}

		protected override void DisposeObjcect(DbConnection obj)
		{
			obj.Close();
		}
	}
}
